package com.example.courseselectionsystemconsume.service.impl;

import com.example.courseselectionsystemconsume.dao.UserDao;
import com.example.courseselectionsystemconsume.pojo.User;
import com.example.courseselectionsystemconsume.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @description: TODO
 * @author: Tokyo_God
 * @date: 2020/12/28 10:26
 * Role of:
 * @version: v1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserDao userDao;
    @Override
    public int register(User user) {
        return userDao.register(user);//添加数据
    }

    @Override
    public int upUser(User user) {
        return userDao.upUser(user);
    }
}
